package com.vframework.system.dict.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vframework.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author codeGenerator
 * @since 2020-10-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
@ApiModel(value="SysDict对象", description="字典表")
public class SysDict extends BaseEntity<SysDict> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "dict_id", type = IdType.AUTO)
    private Integer dictId;

    @TableField("ptype_code")
    private String ptypeCode;

    @TableField("ptype_name")
    private String ptypeName;

    @TableField("dict_code")
    private String dictCode;

    @TableField("dict_name")
    private String dictName;

    @ApiModelProperty(value = "0无效1有效")
    @TableField("status")
    private String status;

    @TableField("sort")
    private BigDecimal sort;


    @Override
    protected Serializable pkVal() {
        return this.dictId;
    }

}
